package com.chen;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.context.annotation.ImportResource;

@ImportResource("classpath:provider-b.xml")
@SpringBootApplication(exclude = MongoAutoConfiguration.class)
public class ApplicationB {

    public static void main(String[] args) {
        SpringApplication.run(ApplicationB.class,args);
        /*ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("provider-a.xml");
        context.start();*/
        System.out.println("account b service started...");
        //SpringApplication.run(ApplicationA.class, args);
        StringBuffer sb = new StringBuffer();
        sb.append("文档访问地址：\n");
//        sb.append("http://localhost:8801/swagger-ui/index.html");
        sb.append("http://localhost:8802/swagger-ui.html");
        System.out.println(sb.toString());
    }
}
